package com.qf.demo;

import com.qf.service.AdminService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description: 公用常量
 * @Data: 2022/8/30 11:12
 * @Pacakge: com.qf.demo
 * @ClassName: AdminDemo
 * @Author: fan
 */
public class AdminDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
        AdminService adminService = (AdminService) applicationContext.getBean("adminService");
        adminService.addAdmin();
    }


}
